<%--
  Created by IntelliJ IDEA.
  User: 86183
  Date: 2019/9/12
  Time: 8:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%String path = request.getContextPath();%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<table class="result-tab" width="100%">
    <tr>
        <th>序号</th>
        <th>管理员</th>
        <th>ip</th>
        <th>操作</th>
        <th>操作时间</th>
    </tr >


    <c:forEach items="${requestScope.pageInfo.list}" var="logsheet" varStatus="stat">
        <tr>
            <td class="id2">${logsheet.id}</td>
            <td class="name">${logsheet.admin.name}</td>
            <td>${logsheet.loginIp}</td>
            <td>${logsheet.log}</td>
            <td><fmt:formatDate value="${logsheet.useTime}" pattern="yyyy-MM-dd  HH:mm:ss"/></td>
        </tr>

    </c:forEach>

</table>
<tr>
    <div class="biankuang">

        <td colspan="7">
            <c:forEach  items="${requestScope.pageInfo.navigatepageNums}" var="i">
                <c:if test="${requestScope.pageInfo.pageNum eq i}" var="result">
                    <a href="#" id="ids" class="num pageNum" id="${i}">${i}</a>
                </c:if>
                <c:if test="${not result}" >
                    <a href="#" id="ids" class="num" id="${i}">${i}</a>
                </c:if>
            </c:forEach>
        </td>
    </div>
</tr>
<script>
    var pageNum;
    $(".num").click(function () { //给页码加点击事件
        pageNum = $(this).html();

        initData(pageNum);

        return false;
    });
</script>
